package com.arsn.myf.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 用户和角色关联对象
 *
 * @author zhongrj
 * @date 2022-12-12 20:18:40
 */
@Data
@TableName("sys_user_role")
@ApiModel(value = "UserRole对象", description = "UserRole对象")
public class UserRole implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
    * 主键ID
    */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键ID")
    private Long id;

    /**
    * 用户ID
    */
    @ApiModelProperty(value = "用户ID")
    private Long userId;

    /**
    * 角色ID
    */
    @ApiModelProperty(value = "角色ID")
    private Long roleId;

}
